//
//  MineBuyCoinTableViewCell.m
//  UniversalApp
//
//  Created by 志刚杨 on 2018/1/27.
//  Copyright © 2018年 voidcat. All rights reserved.
//

#import "MineBuyCoinTableViewCell.h"
#import "RechargeItem.h"
@implementation MineBuyCoinTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.labTip.textColor = MainColor;
    self.btnMoreBuy.ghostColor = MainColor;
    self.btnMoreBuy.hidden = YES;
    self.coinName.text = [NSString stringWithFormat:ASLocalizedString(@"购买%@"),KCOIN_NAME];
}

-(void)setPayCoin:(NSArray<Pay_coin *> *)payCoin
{
    return;
    _payCoin = payCoin;
    NSMutableArray *itemArr = [NSMutableArray array];
    
    for(int i=0;i<_payCoin.count;i++)
    {
        Pay_coin *payitem = _payCoin[i];
        RechargeItem *item1 = [RechargeItem new];
        [item1 initWithMoney:NSStringFormat(ASLocalizedString(@"%@元"),payitem.money) andCoin:NSStringFormat(@"%@%@",payitem.coin,KCOIN_NAME)];
        [itemArr addObject:item1];
    }
    
    
    for (RechargeItem *coll in itemArr) {
        [self addSubview:coll];
    }
    
    [itemArr mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(_labTip).offset(30);
        make.height.equalTo(@68);
        //        make.width.equalTo(@(SCREEN_WIDTH/3-30));
    }];
    
    [itemArr mas_distributeViewsAlongAxis:MASAxisTypeHorizontal withFixedSpacing:20 leadSpacing:20 tailSpacing:20];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
